<?php

/**
 * map actions.
 *
 * @package    rbis
 * @subpackage map
 * @author     Norú Moreno, Fahmi Machda
 * @version    SVN: $Id: components.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class mapComponents extends sfComponents
{
  public function executeMap(){
    $this->culture = $this->getUser()->getCulture();

    // http://rbis.almacode.com
    $this->gmapsKey = "ABQIAAAAlI73E3lYreF7zoSEMSepUxT5-pmlfRtNcUce2V-nvpUjBhWrcBSDM1nO2d8VqCZ1HgVHGWmGpa8tcQ";

    if (in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
    {
      // http://rbis/
      $this->gmapsKey = "ABQIAAAANtH7vHshsYdzOc14EY-a1xTj8hvG0tOEL6g2O-R5vXsnu2DLTBTq05SpUYFKMHYNfDhTkMFiuLpaxA";
    }
  }
}
